package cn.numeron.common.utility

import cn.numeron.android.AppRuntime
import cn.numeron.common.extension.GsonHelper
import coil.imageLoader
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent

@Module
@InstallIn(SingletonComponent::class)
object CommonModule {

    val gson
        @Provides
        get() = GsonHelper.gson

    val dataStore
        @Provides
        get() = Preferences.dataStore

    val imageLoader
        @Provides
        get() = AppRuntime.context.imageLoader

}